#include<iostream>
using namespace std;
class CPolygon {
protected:
	int width, height;
public:
	void setValues(int a, int b);
	virtual int area() = 0;
};
class CRectangle : public CPolygon {
public:
	int area();
};
class CTriangle : public CPolygon {
public:
	int area();
};
